//timer_interrupt.h
#ifndef __SIMUALATE_DATA_H
#define __SIMUALATE_DATA_H
#include "stm32f10x_tim.h"
#include "stm32f10x.h"
#include "electrical_para.h"
#define PI 3.1415927f
#define SQRT_2 1.41421356f
#define LOW_READY  0x01
#define HIGH_READY 0x02


extern VoltageData_t U_sim_buf;

//extern float U_sim_data[3][12];
void TIM2_Int_Init(u16 arr,u16 psc);

void start_simulate(void);
void stop_simulate(void);

#endif
